
package com.dhcc.bpm.modules.api.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName Sys
 * @Description 系统表实体类
 * @Author daina
 * @Date 2020/2/25 15:22
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@ExcelTarget("20")
@Data
@TableName("opc_sys")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Sys对象", description = "系统表")
public class Sys extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	@Excel(name = "名称")
	private String sysName;
	/**
	 * 英文名称
	 */
	@ApiModelProperty(value = "英文名称")
	@Excel(name = "英文名称")
	private String sysEname;
	/**
	 * 编号
	 */
	@ApiModelProperty(value = "编号")
//	@Excel(name = "编号")
	private String sysCode;
	/**
	 * 父ID
	 */ @JsonSerialize(
			using = ToStringSerializer.class,
			nullsUsing = NullSerializer.class
	)
	@ApiModelProperty(value = "父ID")
//	@Excel(name = "父ID")
	private Long pid;
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
	@Excel(name = "描述")
	private String describe;
	/**
	 * 星级评价
	 */
	@ApiModelProperty(value = "星级评价")
//	@Excel(name = "星级评价")
	private String starRating;
	/**
	 * 系统编码
	 */
	@ApiModelProperty(value = "系统编码")
	@Excel(name = "系统编码")
	private String sysNum;
	/**
	 * 路径
	 */
	@ApiModelProperty(value = "路径")
	@Excel(name = "路径")
	private String url;
	/**
	 * 是否作为路径
	 */
	@JsonSerialize(
			using = ToStringSerializer.class,
			nullsUsing = NullSerializer.class
	)
	@ApiModelProperty(value = "是否作为路径")
	@Excel(name = "是否作为路径")
	private Integer isUrl;


	/**
	 * 联系人
	 */
	@ApiModelProperty(value = "联系人")
	@Excel(name = "联系人")
	private String link;

	/**
	 * 联系电话
	 */
	@ApiModelProperty(value = "联系电话")
	@Excel(name = "联系电话")
	private String phone;

//	@ApiModelProperty(value = "报文格式")
//	private String messageFormat;

	/**
	 * 导出数据标识
	 */
	@ApiModelProperty(value = "导出数据标识")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
//	@Excel(name = "导出数据标识")
	private String expSeq;
	/**
	 * 类别 1 内部 2外部
	 */
	@ApiModelProperty(value = "系统类别")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	@Excel(name = "系统类别")
	private Integer sysType;

}
